package com.ruoyi.common.dao.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.dao.service.UidGenService;
import com.xfvape.uid.UidGenerator;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UidGenServiceImpl implements UidGenService {
    @Resource
    private UidGenerator uidGenerator;

    @Override
    public String getUid() {
        return Convert.toStr(uidGenerator.getUID());
    }
}
